package blueprint4j.apps;

import java.util.Set;

import blueprint4j.db.Entity;

public class DefaultAuthenticatedUser<type extends Entity> implements AuthenticatedUser<type>{
	private Set<String> rights=null;
	private String name=null;
	private type entity=null;
	
	public DefaultAuthenticatedUser(String name, Set<String> rights,
			type entity) {
		super();
		this.name = name;
		this.rights = rights;
		this.entity = entity;
	}

	@SuppressWarnings("unchecked")
	@Override
	public type getEntity() {
		return entity;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Set<String> getRights() {
		return rights;
	}

}
